package com.acme.task5;

public class TextModifier {

	final static String errInput = "Error: no input line";
	final static String doublePlus = "++";
	final static String doubleMinus = "--";

	public static void main(String[] args) {
		if (args.length == 0) {
			System.out.println(errInput);
			return;
		}

		String str = args[0];
		for (int i = 0; i < str.length(); i++) {
			char charAtIndex = str.charAt(i);
			if (Character.isDigit(charAtIndex)) {
				continue;
			} else if (charAtIndex == '-') {
				System.out.print(doubleMinus);
			} else if (charAtIndex == '+') {
				System.out.print(doublePlus);
			} else {
				System.out.print(charAtIndex);
			}
		}
		System.out.println();
	}
}
